//
//  FirstBannerViewController.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/13.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "FirstBannerViewController.h"
#import "AnimatingView.h"
@interface FirstBannerViewController ()
@property (nonatomic,strong) AnimatingView *anima;
@end

@implementation FirstBannerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
    self.anima = [[AnimatingView alloc] initWithFrame:self.view.bounds];
    // Do any additional setup after loading the view from its nib.
}
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
    [_anima startTheAnimation];
}
- (void)viewWillDisappear:(BOOL)animated{
    [_anima stopTheAnimation];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
